<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <meta http-equiv="X-UA-Compatible" content="IE=9; IE=8; IE=7; IE=EDGE">
	<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
	<title>品优购，欢迎登录</title>
	 <link rel="icon" href="seller/img/assets/img/favicon.ico">

    <link rel="stylesheet" type="text/css" href="seller/css/webbase.css" />
    <link rel="stylesheet" type="text/css" href="seller/css/pages-shoplogin.css" />
    <script src="http://www.jq22.com/jquery/jquery-1.10.2.js"></script>
    
    <script type="text/javascript" src="seller/plugins/jQuery/jquery-2.2.3.min.js" ></script>
    <script type="text/javascript" src="layui/layui.js" ></script>
    <link rel="stylesheet" href="layui/css/layui.css">

	<script type="text/javascript">
		if(window!=top)
		{
		  top.location.href=location.href;
		}

		layui.use('form', function(){
		  var form = layui.form;
		  
		  //监听提交
		  form.on('submit(formDemo)', function(data){
		  	var username = $("#username").val();
		  	var password = $("#password").val();
		  	$.ajax({
		  		type:"POST",
		  		url:"login.action",
		  		data:{"username":username,"password":password},
		  		success:function(result){
		  			if(result=='true'){
		  				window.location.href="index.action";
		  			}else{
		  				layer.alert("用户名或密码错误!!!");
		  			}
		  		}
		  	});
		  });
		});
		
	</script>

	
</head>

<body>
	<div class="login-box">
		<!--head-->
		<div class="py-container logoArea">
			<a href="" class="logo"></a>
		</div>
		<!--loginArea-->
		<div class="loginArea">
			<div class="login ">
				<div class="py-container">
			 <div class="loginform">
					<ul class="sui-nav nav-tabs tab-wraped">
						<li>
							<a href="#" data-toggle="tab">
								<h3>扫描登录</h3>
							</a>
						</li>
						<li class="active">
							<a href="#" data-toggle="tab">
								<h3>账户登录</h3>
							</a>
						</li>
					</ul>
					<div class="tab-content tab-wraped">
						<div id="index" class="tab-pane">
							<p>二维码登录，暂为官网二维码</p>
							<img src="img/wx_cz.jpg" />
						</div>
						<div id="profile" class="tab-pane  active">
						<!--  action="login.action" method="post"    onsubmit="return check()" -->
							<form class="sui-form layui-form" action="" method="post"  >
								<div class="input-prepend layui-form-item"><span class="add-on loginname"></span> <!-- onblur="checkName()" -->
									<input id="username" type="text" placeholder="邮箱/用户名/手机号" name="username" lay-verify="required" autocomplete="off" class="span2 input-xfat layui-input">
								</div>
								<div class="input-prepend layui-form-item"><span class="add-on loginpwd"></span>  <!-- onblur="checkPwd()" -->
									<input id="password" type="password" placeholder="请输入密码" name="password"  lay-verify="required" autocomplete="off" class="span2 input-xfat layui-input">
								</div>
								
								<div class="setting">
									<label class="checkbox inline"><input  type="checkbox" value="2" checked="">自动登录</label>
									<span class="forget">忘记密码？</span>
								</div>
								<div class="logined layui-form-item">
									<input type="button" class="sui-btn btn-block btn-xlarge btn-danger layui-btn"  value="登&nbsp;&nbsp;&nbsp;录" lay-submit lay-filter="formDemo" target="_blank"/></a>
								</div>
							</form>
							<div class="otherlogin">
								<div class="types">
									<ul>
										<li><img src="seller/img/qq.png" width="35px" height="35px" /></li>
										<li><img src="seller/img/sina.png" /></li>
										<li><img src="seller/img/ali.png" /></li>
										<li><img src="seller/img/weixin.png" /></li>
									</ul>
								</div>
								<span class="register"><a href="register.html" target="_blank">立即注册</a></span>
							</div>
						</div>
					</div>
				</div>

</div>
			</div>
		</div>
		<!--foot-->
		<div class="py-container copyright">
			<ul>
				<li>关于我们</li>
				<li>联系我们</li>
				<li>联系客服</li>
				<li>商家入驻</li>
				<li>营销中心</li>
				<li>手机品优购</li>
				<li>销售联盟</li>
				<li>品优购社区</li>
			</ul>
			<div class="address">地址：北京市昌平区建材城西路金燕龙办公楼一层 邮编：100096 电话：400-618-4000 传真：010-82935100</div>
			<div class="beian">京ICP备08001421号京公网安备110108007702
			</div>
		</div>
	</div>

<script type="text/javascript" src="js/plugins/jquery/jquery.min.js"></script>
<script type="text/javascript" src="js/plugins/jquery.easing/jquery.easing.min.js"></script>
<script type="text/javascript" src="js/plugins/sui/sui.min.js"></script>
<script type="text/javascript" src="js/plugins/jquery-placeholder/jquery.placeholder.min.js"></script>
<script type="text/javascript" src="js/pages/shoplogin.js"></script>
</body>

</html>